package com.liuxing.doctor.mapper;

import com.liuxing.doctor.entity.InspectionItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface InspectionItemMapper {
    int deleteByPrimaryKey(Integer inspectionItemId);

    int insert(InspectionItem record);

    int insertSelective(InspectionItem record);

    InspectionItem selectByPrimaryKey(Integer inspectionItemId);

    int updateByPrimaryKeySelective(InspectionItem record);

    int updateByPrimaryKey(InspectionItem record);

    /**
     * 通过执行科室id查询检查名称
     * @param executiveDivision 执行科室的id（同科室的id）
     * @return
     */
    InspectionItem selectByExecutiveDivision(String executiveDivision);

    /**
     * 查询所有检查条目
     * @return
     */
    List<InspectionItem> selectAll();

    /**
     * 通过检查条目id查询
     * @param inspectionItemId
     * @return
     */
    InspectionItem selectByInspectionItemId(String inspectionItemId);

    /**
     * 根据检查条目的名称模糊查询
     * @param inspectionItemName
     * @return
     */
    InspectionItem selectByInspectionItemName(String inspectionItemName);
}